/*
 * Copyright 2006-2023 ahtelit.com, All Rights Reserved.
 */

package com.telit.firecommand.model.cityVisualization;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * QryCameraHistoryUrlRequest
 *
 * @author yuezhuang
 * @since 2023-03-17
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "QryCameraHistoryUrlRequest", description = "历史视频流request")
public class QryCameraHistoryUrlRequest implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "火情id")
    private Long fireId;

    @ApiModelProperty(value = "监控设备id")
    private String cameraId;

//    @ApiModelProperty(value = "返回流类型：1-rtsp 2-flv 默认 1")
//    private Integer type;

    @ApiModelProperty(value = "开始时间，格式：yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startAt;

    @ApiModelProperty(value = "结束时间，格式：yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endAt;

}
